#include "QxWellStack.hpp"
#include "ui_QxWellStack.h"

class QxWellStack::QxWellStackPrivate
{
public:

  QxWellStackPrivate( QxWellStack* me ) : m_self( me ) {
    m_ui.setupUi( m_self );
  }

  void init() {
    m_ui.navigateWidget->attachStackedWidget( m_ui.stackedWidget );
  }

  QxWellStack*         m_self;
  Ui::QxWellStackClass m_ui;
};

QxWellStack::QxWellStack( QWidget* parent, Qt::WFlags flags )
  : QMainWindow( parent, flags ), _pd( new QxWellStackPrivate( this ) )
{
  _pd->init();
}

QxWellStack::~QxWellStack()
{
}

void QxWellStack::on_dmBtn_clicked()
{
  _pd->m_ui.stackedWidget->setCurrentIndex( 1 );
}

void QxWellStack::on_viBtn_clicked()
{
  _pd->m_ui.stackedWidget->setCurrentIndex( 2 );
}
